//
// Created by blensmile on 2019/2/4.
//

#ifndef CPVIDEO_LOG_H
#define CPVIDEO_LOG_H

/**
 * Created by jianxi on 2017/6/2.
 * https://github.com/mabeijianxi
 * mabeijianxi@gmail.com
 */

#include <android/log.h>

extern int JNIDEBUG;

#define LOGE(format, ...) if(JNIDEBUG){__android_log_print(ANDROID_LOG_ERROR, "ffmpeg", format, ##__VA_ARGS__);}
#define LOGD(format, ...) if(JNIDEBUG){__android_log_print(ANDROID_LOG_DEBUG, "ffmpeg", format, ##__VA_ARGS__);}
#define LOGI(format, ...) if(JNIDEBUG){__android_log_print(ANDROID_LOG_INFO, "ffmpeg", format, ##__VA_ARGS__);}

#endif //CPVIDEO_LOG_H
